Skip to content

fix(security): file an issue for each Trivy-config alert group - #4640

Merged
dan-petty merged 2 commits into
mainfrom
fix/4401-trivy-config-alert-filer
Nov 11, 2026
Merged

dan-petty merged 2 commits into
mainfrom
fix/4401-trivy-config-alert-filer

Conversation

@dan-petty

Copy link
Copy Markdown
Owner

52 alerts of the tool Trivy-config stayed open on main, and no fix, dismissal or ignore named them. Nothing turned an alert into work, and SECURITY.md named no judge and no time.

devops scan alerts files one issue for each rule and file with open alerts and no open issue: at most 5 in one run, the worst severity first. A daily workflow runs it. SECURITY.md says that the owner judges CRITICAL in 24 hours and an agent judges the rest in 14 days. The trivy config scan now reads .trivyignore.yaml, which holds a path, a statement and an expiry for each entry.

Closes #4401

Change: openspec/changes/archive/2026-11-11-4401-52-trivy-config-alerts-stay-open/

An alert of the tool Trivy-config had no judge and no time: 52 stayed open with no issue.
devops scan alerts files one issue for each rule and file with open alerts and no open
issue, at most 5 in one run. A daily workflow runs it. SECURITY.md names who judges an
alert and in what time. The trivy config scan reads .trivyignore.yaml, which holds a path,
a statement and an expiry for each entry.
@dan-petty dan-petty added type/bug Type bug: the code does not do what it must scope/security Security linters (trivy, bandit, gitleaks, kubeconform) and Vault labels Nov 11, 2026
@dan-petty

dan-petty commented Nov 11, 2026 •

Copy link
Copy Markdown
Owner Author

fail-to-pass run: uv run devops ci fail-to-pass --base origin/main

10 tests failed on base, and 1 test file errored at collection (tests/security/test_alert_filer.py, the module does not exist on base). 146 tests passed on base. The 10 failures:

  • tests/commands/test_scan_alerts.py: 4 tests (the command does not exist on base)
  • tests/invariants/test_workflow_contracts.py: 3 tests (the workflow file does not exist on base)
  • tests/invariants/test_agents_md.py: 2 tests (SECURITY.md has no rule on base)
  • tests/security/test_trivy_config_ignore.py: 1 test (the scan names no ignore file on base)

Measurements, read only (no issue filed):

  • On 2026-11-11, read_open_alerts parsed 52 open Trivy-config alerts of this repository into 52 groups. plan_filing with the 400 open issues chose AZU-0041 (CRITICAL) first, then four HIGH groups, and left 47 for later runs.
  • trivy config 0.75.0 with --ignorefile .trivyignore.yaml hid DS-0002 of a test Dockerfile for an entry with paths, statement and expired_at: 2099-01-01, and kept DS-0026. devops scan report showed the same. Trivy fails with ignore file not found when the file is missing, so the scan names the file only when it exists.
  • devops scan workflows (zizmor) finds nothing in the new workflow. A workflow_run trigger gave a HIGH dangerous-triggers finding, so the workflow has a daily schedule only (see the OpenSpec design).

Deviation from the issue text: no workflow_run trigger (reason above). The first run of the workflow, or devops scan alerts, files 5 issues for the 52 alerts that are open now, and 5 more each day. #4409 holds the judgement of those alerts.

Live steps after the merge (no cluster or secret change): none. The workflow needs no secret. A person may run it once at once with the workflow_dispatch trigger of Trivy Config Alerts.

@dan-petty
dan-petty marked this pull request as ready for review November 11, 2026 16:26
@dan-petty
dan-petty enabled auto-merge (squash) November 11, 2026 16:27
@dan-petty
dan-petty merged commit a7668fe into main Nov 11, 2026
32 checks passed
@dan-petty
dan-petty deleted the fix/4401-trivy-config-alert-filer branch November 11, 2026 16:48
dan-petty pushed a commit that referenced this pull request Nov 11, 2026
🤖 I have created a release *beep* *boop*
---


##
[0.112.2](v0.112.1...v0.112.2)
(2026-11-11)


### Bug Fixes

* **github:** bound the GitHub session read at 60 seconds
([#4636](#4636))
([a87442a](a87442a))
* **roadmap:** bound the shadow mark probability to 0 to 1
([#4655](#4655))
([abf1166](abf1166))
* **roadmap:** halt implement step on consecutive refusals
([#4659](#4659))
([9bcf0f5](9bcf0f5))
* **security:** file an issue for each Trivy-config alert group
([#4640](#4640))
([a7668fe](a7668fe))
* **service:** route issues webhooks past scoped intake
([#4631](#4631))
([caf4c7e](caf4c7e))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

Co-authored-by: dan-petty-release[bot] <346998822+dan-petty-release[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

scope/security Security linters (trivy, bandit, gitleaks, kubeconform) and Vault type/bug Type bug: the code does not do what it must

Projects

None yet

Development

Successfully merging this pull request may close these issues.

fix(security): 52 Trivy-config alerts stay open, none judged

1 participant